<?php

namespace app\common\model;

/**=========================================
 * Copyright © 2023-2024, WICMS.CN. All Rights Reserved
 * Project Name: WiCMS
 * Description: 后台用户角色模型
 * Author: jason
 * Email: 52527998@QQ.COM
 * Date: 2024/9/18
 * Time: 上午10:52
 * File: app\common\Model\AdminRoleModel.php
 * =========================================
 */

use think\Model;

class AdminRoleModel extends Model
{

    protected $pk                 = 'id';
    protected $name               = 'AdminRole';
    protected $autoWriteTimestamp = false;
    protected $json               = ['allow_auth'];

    public function setRoleCodeAttr(string $value): string
    {
        return ucfirst($value);
    }
}